package com.cqie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 不吃海鲜
 * @since 2024-12-24
 */
@Getter
@Setter
@TableName("chat_message")
@ApiModel(value = "ChatMessage对象", description = "")
public class ChatMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("消息id")
    @TableId(value = "chat_message_id", type = IdType.AUTO)
    private Integer chatMessageId;

    @ApiModelProperty("发送者id")
    @TableField("serder_id")
    private Integer serderId;

    @ApiModelProperty("发送者姓名")
    @TableField("serder_name")
    private String serderName;

    @ApiModelProperty("接收者id")
    @TableField("receiver_id")
    private Integer receiverId;

    @ApiModelProperty("接收者姓名")
    @TableField("receiver_name")
    private String receiverName;

    @ApiModelProperty("内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("会话记录id")
    @TableField("session_id")
    private Integer sessionId;

    @ApiModelProperty("会话常见时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("会话更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("作废标志")
    @TableField("rm_sign")
    private String rmSign;
}
